import request from "@/utils/request";
/**
* @exports 老板详情接口
* @param params 
* @returns Promise
*/
export const detail = (params: bossDetailParams) => {
    return request.post<bossDetailResult>("/boss/detail", params);
}
/**
* @exports 老板保存接口
* @param params 
* @returns Promise
*/
export const save = (params: bossAddParams) => {
    return request.post("/boss/save", params);
}
/**
* @exports 老板更新接口
* @param params 
* @returns Promise
*/
export const update = (params: { bossId: string } & bossAddParams) => {
    return request.post("/boss/update", params);
}
/**
* @exports 老板删除接口
* @param params 
* @returns Promise
*/
export const deleteBoss = (params: bossDetailParams) => {
    return request.post("/boss/remove", params);
}
/**
* @exports 老板存单接口
* @param params 
* @returns Promise
*/
export const updatePrice = (params: { bossId: string, amount: number }) => {
    return request.post("/boss/updatePrice", params);
}
